home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / processes / howtohideyourapp / howtohideapp.r < prev    next >
Encoding:
Text File  |  2000-09-28  |  1.8 KB  |  72 lines

  1. /*    File:        HowToHideApp.r
  2.     
  3.     Description: 
  4.              This sample illustrates how the SetHideOnSwitch and GetHideOnSwitch
  5.             routines can be used to hide an application.  These routines were first
  6.             documented in Technote TN1102, "Mac OS 8".  On the world wide
  7.             web, documentation for these routines can be found at the address:
  8.             
  9.             http://developer.apple.com/technotes/tn/tn1102.html#processmgr
  10.             
  11.             This file contains the rez declarations used for building the
  12.             HowToHideApp applciation.
  13.  
  14.     Copyright: 
  15.             Copyright © 1999 by Apple Computer, Inc.
  16.             All rights reserved.
  17.     
  18.     Disclaimer:
  19.             You may incorporate this sample code into your applications without
  20.             restriction, though the sample code has been provided "AS IS" and the
  21.             responsibility for its operation is 100% yours.  However, what you are
  22.             not permitted to do is to redistribute the source as "DSC Sample Code"
  23.             after having made changes. If you're going to re-distribute the source,
  24.             we require that you make it clear in the source that the code was
  25.             descended from Apple Sample Code, but that you've made changes.
  26.     
  27.     Change History (most recent first):
  28.             12/6/1999 created
  29. */
  30.  
  31. #include "Processes.r"
  32. #include "CodeFragments.r"
  33.  
  34. include "HowToHideApp.rsrc";
  35.  
  36. resource 'SIZE' (-1, purgeable)  {
  37.     reserved,
  38.     ignoreSuspendResumeEvents,
  39.     reserved,
  40.     canBackground,
  41.     doesActivateOnFGSwitch,
  42.     backgroundAndForeground,
  43.     dontGetFrontClicks,
  44.     ignoreAppDiedEvents,
  45.     is32BitCompatible,
  46.     notHighLevelEventAware,
  47.     localAndRemoteHLEvents,
  48.     notStationeryAware,
  49.     dontUseTextEditServices,
  50.     reserved,
  51.     reserved,
  52.     reserved,
  53.     1024 * 80,
  54.     1024 * 80
  55. };
  56.  
  57.  
  58. resource 'cfrg' (0) {
  59.     {    kPowerPC,
  60.         kFullLib,
  61.         kNoVersionNum,
  62.         kNoVersionNum,
  63.         kDefaultStackSize,
  64.         kNoAppSubFolder,
  65.         kIsApp,
  66.         kOnDiskFlat,
  67.         kZeroOffset,
  68.         kWholeFork,
  69.         "HowToHideApp"
  70.     }
  71. };
  72.